﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Seating.utils
{
    class HashPasswordUtil
    {
        public static bool checkPassword(string password, string salt, string hashedStr)
        {
            return MD5.verifyHash(password, salt, hashedStr);
        }

        public static string getHash(string password, string salt)
        {
            return MD5.getHash(password, salt);
        }

         //Console.WriteLine(HashPasswordUtil.getHash("222", "222"));
         //   string str = "4297F44B13955235245B2497399D7A93";
         //   MessageBox.Show( HashPasswordUtil.checkPassword("222", "222", str).ToString());
    }
}
